﻿using BCCommon.Enums;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace BCDto.WeChatComponent.WeChatCustomMenu
{
    /// <summary>
    /// 微信自定义菜单请求模型
    /// </summary>
    public class WeChatCustomMenuRequestDto
    {
        /// <summary>
        /// 菜单名称
        /// </summary>
        [Display(Name= "菜单名称")]
        [Required(ErrorMessage ="{0} 不允许为空。")]
        public string Name { get; set; }
        /// <summary>
        /// 菜单级别
        /// </summary> 
        [Display(Name= "菜单级别")]
        [Required(ErrorMessage = "{0} 不允许为空。")]
        public int Level { get; set; }
        /// <summary>
        /// 菜单按钮类型
        /// </summary>
        [Display(Name = "菜单按钮类型")]
        [Required(ErrorMessage = "{0} 不允许为空。")]
        public WeChatCustomMenuType Type { get; set; }
        /// <summary>
        /// 连接地址
        /// </summary>
        [Display(Name = "连接地址")]
        public string Url { get; set; }
        /// <summary>
        /// 菜单Key值
        /// </summary>
        [Display(Name = "菜单Key值")]
        public string ClickKey { get; set; }
        /// <summary>
        /// 微信永久素材Id
        /// </summary>
        [Display(Name = "微信永久素材Id")]
        public string MediaId { get; set; }
        /// <summary>
        /// 微信小程序AppId
        /// </summary>
        [Display(Name = "微信小程序AppId")]
        public string Appid { get; set; }
        /// <summary>
        /// 小程序的页面路径
        /// </summary>
        [Display(Name = "小程序的页面路径")]
        public string PagePath { get; set; }
        /// <summary>
        /// 父级自定义菜单Id
        /// </summary>
        [Display(Name = "父级自定义菜单Id")]
        public int? ParentMenuId { get; set; }
    }
}
